<script>
function openNew() {
  var w = window.open();
  var download = "http://"+window.location.host+"/download-test1.lib";
  w.document.write('<bo' + 'dy onload="location.replace(\''+download+'\')">Important information about the download...</bo' + 'dy>');
  w.document.close();
}
</script>
<body>
	<button onclick="openNew()">click me</button>
</body>